package com.infect.service.imp;

import com.common.model.infect.User;
import com.common.vo.infect.UserVO;
import com.infect.mapper.UserMapper;
import com.infect.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

        @Autowired
        private UserMapper userMapper;

        @Override
        public User addUser(UserVO UserVO) {
                return null;
        }

        @Override
        public User delete(Long id) {
                return null;
        }

        @Override
        public User update(Long id, UserVO UserVO) {
                return null;
        }

        @Override
        public User select(Long id) {
                User user = new User();
                //设置属性
                user.setId(id);
                return userMapper.selectOne(user);
        }

        @Override
        public List<UserVO> findAll() {
                return null;
        }

        public List<User> selectList(){
                return userMapper.selectAll();
        }
}
